#ifndef BUSINESS_H
#define BUSINESS_H

#include <QObject>
#include "App/Universal/Universal.h"

class Business final: public QObject
{
public:
    explicit Business(QObject *parent = nullptr);
    ~Business() override;

    // 执行
    [[nodiscard]] bool Start() const;

    // 运行状态
    [[nodiscard]] bool RunStatus() const;

    // 是否执行脚本
    void SetRunScript(bool run) const;

    // 脚本运行状态
    [[nodiscard]] bool ScriptStatus() const;


    // 停止
    void Stop() const;

private:
#ifdef USE_DEMO
    const char* customer_number_ {"DEMO"};          // 客户号
# else
    const char* customer_number_ {"070075"};        // 客户号
#endif

    SharedData *app_shared_data_ {nullptr};         // 共享数据
    KSHandle app_shared_data_handle_ {NULL};        // 共享数据句柄
};

#endif //BUSINESS_H
